/**
 * 〈用户实体类〉
 *
 * @author 王青杰
 * @create 2018-03-258:15
 * @since 1.0.0
 */
package com.example.entity;


import lombok.*;

import javax.persistence.Entity;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;

@Data
@NoArgsConstructor(access = AccessLevel.PUBLIC)
@AllArgsConstructor(access = AccessLevel.PUBLIC)
@Entity

public class TbUser implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;//用户id

    private String password; //用户密码

    private  String username;//用户名

    private String name;//用户姓名

    private String email; //邮箱

    private String level; //用户班级

    public TbUser(String username, String name, String email, String level) {
        this.username = username;
        this.name = name;
        this.email = email;
        this.level = level;
    }
}
